/**
 * @program Leetcode
 * @description: 模版
 * @author: lishangsheng
 * @create: 2018/11/05 11:32
 */
public class Solution {

    public static void dubbleNum(int n) {
        if (n > 5000) {
            System.out.println(n);
            return;
        }
        n = 2 * n;
        dubbleNum(n);
    }
    public static void main(String[] args){
        dubbleNum(3);
    }
}
